#include "geomultipolygon.h"

geoMultiPolygon::geoMultiPolygon()
{

}

geoMultiPolygon::~geoMultiPolygon()
{

}

void geoMultiPolygon::mapProjection(projection *proj)
{
    for(auto&polygon:polygons)
    {
        polygon->mapProjection(proj);
    }
}

bool geoMultiPolygon::isPointWithin(QPointF pt)
{
    foreach(geoPolygon* polygon,polygons)
    {
        if(polygon->isPointWithin(pt))  return true;
        else return false;
    }
    return false;
}
